<div id="blockCont">
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top"><div class="Col">
	<tal:block tal:content="structure php: this.partial('myactivity/myactivity.html')"/>
</div></td>
	<td valign="top"><div class="Col">
<div class="ModuleBlock">
<h1>
<label>Tocks</label>
<div><a href="/triggers/index/triggers-personal"  ><img src="/images/HomeIcon.png" alt="Settings" width="15" height="17" border="0" align="top" class="SetIcon" title="Settings"/></a></div>
<div class="wid186"><input type="text" value="search" /><a href="#"><img src="/images/ModSearchIcon.png" border="0" class="SerImg" /></a></div>
</h1>
<div class="clear"></div>
<ul class="ModuleMenu">
<li><a href="/triggers/settings/triggers-settings" class="active">Connect/Share</a> </li>
<li><a href="/triggers/settings/triggers-notices">Notices</a> </li>
<li><a href="/triggers/settings/groups">Groups</a></li>
</ul>
<div class="clear hig20"></div>
<div id="messageDis" style="color:red;padding:5px 5px;"></div>
<div class="pad_a ModuleHig">
<div>
<div class="Fleft pad_t5 pad_r15 pad_b15 wid100">Twitter</div>
<?php if($ctx->twitter['is_connect']=="N" || $ctx->twitter['is_connect']=="") { ?>
<div><a class="Button" href="javascript:void(0);" onclick="triggerSettings(1,'Y');"><span>Connect</span></a></div>
<? }else { ?>
<div><a class="Button" href="javascript:void(0);" onclick="triggerSettings(1,'N');"><span>Disconnect</span></a></div>
<? } ?>
<div class="clear"></div>
</div>
<div>
<div class="Fleft pad_t5 pad_r15 pad_b15 wid100">Linked in</div>
<?php if($ctx->linkedIn['is_connect']=="N" || $ctx->linkedIn['is_connect']=="") { ?>
<div><a class="Button" href="javascript:void(0);" onclick="triggerSettings(2,'Y');"><span>Connect</span></a></div>
<? }else { ?>
<div><a class="Button" href="javascript:void(0);" onclick="triggerSettings(2,'N');"><span>Disconnect</span></a></div>
<? } ?><div class="clear"></div>
</div>
<div>
<div class="Fleft pad_t5 pad_r15 pad_b15 wid100">Facebook</div>
<?php if($ctx->facebook['is_connect']=="N" || $ctx->facebook['is_connect']=="") { ?>
<div><a class="Button" href="javascript:void(0);" onclick="triggerSettings(3,'Y');"><span>Connect</span></a></div>
<? }else { ?>
<div><a class="Button" href="javascript:void(0);" onclick="triggerSettings(3,'N');"><span>Disconnect</span></a></div>
<? } ?>
<div class="clear"></div>
</div>
</div>
<div class="paginat">
<ul>
<li><a href="#"></a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">>></a></li>
</ul>
</div>
<div class="clear"></div>
</div>
</div></td>
	<td valign="top"><div class="Col">
<tal:block tal:omit-tag="" tal:content="structure php: this.action('index','activity','triggers')" />
</div></td>
<td valign="top">
<div class="ColBanner">
<div class="ModuleBlock">
<img src="/images/Gads.gif" /><img src="/images/Gads.gif" /></div>
</div></td>
  </tr>
</table>
<div class="clear"></div>
</div>
<!-- Chat Window  -->
<div class="Chatbox">
<div class="Fleft pad_t2"><img src="/images/ChatAviIcon.png" /></div>
<div class="Fleft fontWht pad_115"><strong>Harinath</strong></div>
<div class="Fright"><a href="#" class="ChatBt"><strong>X</strong></a></div>
<div class="Fright"><a href="#" class="ChatBt txt18"><strong>-</strong></a></div>
</div>
<script type="text/javascript">
//<![CDATA[
function showDiv(type)
{
	if(type == 'r')
	{
		$('#rec').addClass("active");
		$('#sent').removeClass("active");
		$('#sentId').hide();
		$('#recId').show();
	} else {
		//alert(type);
		$('#rec').removeClass("active");
		$('#sent').addClass("active");
		$('#sentId').show();
		$('#recId').hide();
	}

}
function triggerSettings(type,action)
{
	//alert(type+"and"+action);return false;
	$.ajax({
			   
			    type: "POST",
				dataType: "json",
			    data: "type="+type+"&action="+action,
			    url: "/triggers/settings/changetrigger-settings/",
			    success: function(data){
					$('#messageDis').html('Settings Saved');
					location.reload();					
				}
			});
}
//]]>
</script>